package com.example.index.system.fitsystemwindow

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.cat.annotation.Index
import com.example.index.R
import com.example.index.extension.setImmersive
import com.example.index.system.fitsystemwindow.dummy.DummyContent
import com.example.index.system.fitsystemwindow.dummy.TabEntity
import kotlinx.android.synthetic.main.activity_status_bar.*

@Index(
    keywords = "statusbar/状态栏/状态栏透明",
    link = ""
)
class StatusBarActivity : AppCompatActivity(),ItemFragment.OnListFragmentInteractionListener {
    override fun onListFragmentInteraction(item: DummyContent.DummyItem?) {

    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_status_bar)


        window.setImmersive()
        flycoTablayout.setTabData(
            arrayListOf(
                TabEntity(R.drawable.hongbao, R.drawable.hongbao_gray, "红包"),
                TabEntity(R.drawable.my, R.drawable.my_gray, "红包")),
            this,
            R.id.fragment_container,
            arrayListOf(
                ItemFragment.newInstance(1),
                ItemFragment.newInstance(1))
        )
    }


}
